/*
 * @Author: zegobuilder zegobuilder@zego.im
 * @Date: 2023-02-27 15:37:14
 * @LastEditors: zegobuilder zegobuilder@zego.im
 * @LastEditTime: 2023-02-27 15:47:51
 * @FilePath: /migu/test.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
reloadStream() {
  const playingStreamQuality = this.zg.getPlayingStreamQuality(this.streamID)
  if (playingStreamQuality && playingStreamQuality.video) {
    console.info('======视频解码帧率=========', playingStreamQuality.video.videoFPS)
    if (playingStreamQuality.video.videoFPS < 1||playingStreamQuality.video.videoFramesDropped>5) {
      this.zg.zegoWebRTC.logger.info("zm.cm.info ", JSON.stringify(playingStreamQuality))
      this.stopPlayingStream()
      this.$nextTick(() => {
        this.startPlaying()
      })
    }
  }
  if (this.remoteView) {
    this.remoteView.resume()
  }
}